<?php
class IG_Report_Design_Table extends IG_Report_Design_Abstract
{
	/**
     * 
     */
    public function render ()
    {
        $this->_view->assign('tableHeaders0', $this->_options['tableHeaders0']['th']);
        if(!empty($this->_options['tableHeaders1']['th'])){
            $this->_view->assign('tableHeaders1', $this->_options['tableHeaders1']['th']);
        }else{
            $this->_view->assign('tableHeaders1', array());
        }
        $this->_view->assign('tableColumns', $this->_options['tableColumns']['td']);
        if(isset($this->_options['tableFooter']['td'])) $this->_view->assign('tableFooter', $this->_options['tableFooter']['td']);
        
        $data = isset($this->_options['data'])?$this->_options['data']:array();
        $this->_view->assign('data', $data);
        return $this->_view->render($this->_viewScript);
    }
}